home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Tools / Dependencies / Fast_Dependencies_PPC < prev   
Encoding:
Text File  |  1996-04-03  |  15.7 KB  |  554 lines  |  [TEXT/MPS ]

  1. # Fast_Dependencies_PPC
  2. # Copyright © 1984-96 by Apple Computer, Inc. All rights reserved.
  3.  
  4. ###########################################################
  5. # Default build rules
  6. ###########################################################
  7. .a.o                                ƒ ∂
  8.                                     .a ∂
  9.                                     {AsmLoad} ∂
  10.                                     "{BuildFlags}"
  11.     {MAEcho} {EchoOptions} "Assembling:    {default}.a"
  12.     {MAAsm} ∂
  13.         {AsmOptions} ∂
  14.         {OtherAsmOptions} ∂
  15.         {AsmLoadOptions} ∂
  16.         -i "{SrcApp}" {MAAsmPaths} ∂
  17.         -o {targDir}{default}.a.o ∂
  18.         {depDir}{default}.a
  19.  
  20. .c.o                                ƒ ∂
  21.                                     .c ∂
  22.                                     "{BuildFlags}"
  23.     set All_C_Files "{All_C_Files} {depDir}{default}.c"
  24.     set All_C_Names "{All_C_Names} {default}.c"
  25.  
  26. .cp.o                                ƒ ∂
  27.                                     .cp ∂
  28.                                     "{BuildFlags}"
  29.     set All_Cpp_Files "{All_Cpp_Files} {depDir}{default}.cp"
  30.     set All_Cpp_Names "{All_Cpp_Names} {default}.cp"
  31.  
  32. .cpp.o                                ƒ ∂
  33.                                     .cpp ∂
  34.                                     "{BuildFlags}"
  35.     set All_Cpp_Files "{All_Cpp_Files} {depDir}{default}.cpp"
  36.     set All_Cpp_Names "{All_Cpp_Names} {default}.cpp"
  37.  
  38. .rsrc                                ƒ ∂
  39.                                     .r ∂
  40.                                     "{BuildFlags}"
  41.     {MAEcho} {EchoOptions} "Rezzing:       {default}.r"
  42.     IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  43.     IF {OtherViewTypesSrc} != ""
  44.         SET XOtherViewTypesSrc {OtherViewTypesSrc}
  45.         SET XIncludeOtherViewTypes 1
  46.         EXPORT XOtherViewTypesSrc
  47.     ELSE
  48.         SET XIncludeOtherViewTypes 0
  49.     END
  50.     {MARez} ∂
  51.         -d XIncludeOtherViewTypes={XIncludeOtherViewTypes} ∂
  52.         -i "{SrcApp}" -s "{SrcApp}" {MARezPaths} ∂
  53.         -o {targDir}{default}.rsrc ∂
  54.         -t "'rsrc'" -c "'RSED'" ∂
  55.         {RezOptions} ∂
  56.         {OtherRezOptions} ∂
  57.         {depDir}{default}.r
  58.     IF "{XTimes}"
  59.         {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  60.     END
  61.  
  62. .s.o                                ƒ ∂
  63.                                     .s ∂
  64.                                     "{BuildFlags}"
  65.     {MAEcho} {EchoOptions} "Assembling:    {default}.s"
  66.     {MAPPCAsm} ∂
  67.         {PPCAsmOptions} ∂
  68.         {OtherAsmOptions} ∂
  69.         {AsmLoadOptions} ∂
  70.         -i "{SrcApp}" {MAAsmPaths} ∂
  71.         -o {targDir}{default}.s.o ∂
  72.         {depDir}{default}.s
  73.  
  74. ###########################################################
  75. # D E P E N D E N C I E S
  76. ###########################################################
  77. # Trigger for the application build
  78. "{ObjApp}"        ƒ    "{SrcApp}"
  79.  
  80.  
  81. #{AppName} dependencies
  82. "{ObjApp}{AppName}"                    ƒƒ ∂
  83.                                     "{BuildFlags}" ∂
  84.                                     {CPlusLoad} ∂
  85.                                     {MacAppLib} ∂
  86.                                     {NeededSysLibs} ∂
  87.                                     {OtherLinkFiles} ∂
  88.                                     {OtherLinkFilesPPC} ∂
  89.                                     "{XAppName.cp.o}" ∂
  90.                                     "{XUAppName.cp.o}" ∂
  91.                                     "{XMAppName.cp.o}"
  92.     IF "{All_Cpp_Files}" != ""
  93.         if {XUseRAMDisk} && !{XRAMDiskLoad}
  94.             {MAEcho} {EchoOptions} "Loading:       {XRAMDiskName}"
  95.             duplicate -y {CPlusLoad} {CPlusLoadCopy}
  96.             set XRAMDiskLoad 1
  97.         end
  98. ###        {MAEcho} {EchoOptions} "Compiling application source files (C++):"
  99.         {MAEcho} {EchoOptions} "Compiling:    {All_Cpp_Names}"
  100.         IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  101.         {MAPPCC} ∂
  102.             {PPCCOptions} ∂
  103.             {MrCOptions} ∂
  104.             {OtherCPlusOptions} ∂
  105.             {CPlusLoadOptions} ∂
  106.             -i "{SrcApp}" {MACPlusPaths} ∂
  107.             {All_Cpp_Files} ∂
  108.             -o {targDir}
  109.         set All_Cpp_Files ""
  110.         set All_Cpp_Names ""
  111.         IF "{XTimes}"
  112.             {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  113.         END
  114.     END
  115.  
  116. #{AppName} dependencies
  117. "{ObjApp}{AppName}"                    ƒƒ ∂
  118.                                     "{BuildFlags}" ∂
  119.                                     {CPlusLoad} ∂
  120.                                     {MacAppLib} ∂
  121.                                     {NeededSysLibs} ∂
  122.                                     {OtherLinkFiles} ∂
  123.                                     {OtherLinkFilesPPC} ∂
  124.                                     "{XAppName.cp.o}" ∂
  125.                                     "{XUAppName.cp.o}" ∂
  126.                                     "{XMAppName.cp.o}"
  127.     IF "{All_C_Files}" != ""
  128.         if {XUseRAMDisk} && !{XRAMDiskLoad} && ({MAPPCC} == MWCPPC)
  129.             {MAEcho} {EchoOptions} "Loading:       {XRAMDiskName}"
  130.             CopyIfNotEqual {CPlusLoadFiles} {CPlusLoadCopy}
  131.             set XRAMDiskLoad 1
  132.         end
  133. ###        {MAEcho} {EchoOptions} "Compiling application source files (C):"
  134.         {MAEcho} {EchoOptions} "Compiling:    {All_C_Names}"
  135.         IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  136.         {MAPPCC} ∂
  137.             {PPCCOptions} ∂
  138.             {MrCOptions} ∂
  139.             {OtherCOptions} ∂
  140.             {CLoadOptions} ∂
  141.             -i "{SrcApp}" {MACPlusPaths} ∂
  142.             {All_C_Files} ∂
  143.             -o {targDir}
  144.         set All_C_Files ""
  145.         set All_C_Names ""
  146.         IF "{XTimes}"
  147.             {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  148.         END
  149.     END
  150.  
  151. #{AppName} dependencies
  152. "{ObjApp}{AppName}"                    ƒƒ ∂
  153.                                     "{BuildFlags}" ∂
  154.                                     {CPlusLoad} ∂
  155.                                     {MacAppLib} ∂
  156.                                     {NeededSysLibs} ∂
  157.                                     {OtherLinkFiles} ∂
  158.                                     {OtherLinkFilesPPC} ∂
  159.                                     "{XAppName.cp.o}" ∂
  160.                                     "{XUAppName.cp.o}" ∂
  161.                                     "{XMAppName.cp.o}"
  162.     {MAEcho} {EchoOptions} "Linking:       {AppName}"
  163.     IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  164.     {MAPPCLink} ∂
  165.         {PPCLinkOptions} ∂
  166.         {OtherLinkOptions} ∂
  167.         {OtherLinkFiles} ∂
  168.         {OtherLinkFilesPPC} ∂
  169.         {CPlusLoadObj} ∂
  170.         {MacAppLib} ∂
  171.         "{XAppName.cp.o}" ∂
  172.         "{XUAppName.cp.o}" ∂
  173.         "{XMAppName.cp.o}" ∂
  174.         {NeededSysLibs} ∂
  175.         -librename StdCLib.xcoff=StdCLib ∂
  176.         -librename InterfaceLib.xcoff=InterfaceLib ∂
  177.         -librename MathLib.xcoff=MathLib ∂
  178.         {XLinkMap} ∂
  179.         {CFMLibMapping} ∂
  180.         -o "{ObjApp}{AppName}" ∂
  181.         -t APPL ∂
  182.         ||  (∂
  183.         IF "`EXISTS "{ObjApp}M{AppName}.cp.o"`" != ''; ∂
  184.             SetFile -m . "{ObjApp}M{AppName}.cp.o"; ∂
  185.             end; ∂
  186.          Exit 99)
  187.     IF "{XTimes}"
  188.         {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  189.     END
  190.  
  191. #{AppName} dependencies
  192. "{ObjApp}{AppName}"                    ƒƒ ∂
  193.                                     "{XAppRezSrc}" ∂
  194.                                     "{BuildFlags}" ∂
  195.                                     "{Merge68K}" ∂
  196.                                     {MacAppResources} ∂
  197.                                     {MacAppRIntf} ∂
  198.                                     {OtherViewTypesSrc} ∂
  199.                                     {OtherRezFiles} ∂
  200.                                     {OtherRsrcFiles}
  201.     IF "{XAutoRez}"
  202.         {MAEcho} {EchoOptions} "AutoRezzing:   Default.r"
  203.     ELSE
  204.         {MAEcho} {EchoOptions} "Rezzing:       {AppName}.r"
  205.     END
  206.     IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  207.     IF {OtherViewTypesSrc} != ""
  208.         SET XOtherViewTypesSrc {OtherViewTypesSrc}
  209.         SET XIncludeOtherViewTypes 1
  210.         EXPORT XOtherViewTypesSrc
  211.     ELSE
  212.         SET XIncludeOtherViewTypes 0
  213.     END
  214.     SET ObjApp "{ObjApp}"
  215.     EXPORT ObjApp
  216.     SET XAppName "{XAppName}"
  217.     EXPORT XAppName
  218.     {MARez} ∂
  219.         -d XIncludeOtherViewTypes={XIncludeOtherViewTypes} ∂
  220.         -i "{SrcApp}" -s "{SrcApp}" {MARezPaths} ∂
  221.         -o "{ObjApp}{AppName}" ∂
  222.         {RezOptions} ∂
  223.         {OtherRezOptions} ∂
  224.         "{XAppRezSrc}" ∂
  225.         {OtherRezFiles}
  226.     IF "{XTimes}"
  227.         {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  228.     END
  229.     IF "{Merge68K}" != ""
  230.         {MAEcho} {EchoOptions} "Merging:       {Merge68K}"
  231.         Echo "include ∂"{Merge68K}∂" not 'vers';" ∂
  232.             | {MARez} -a -o "{ObjApp}{AppName}"
  233.     END
  234.     {MAEcho} {EchoOptions} "Creator&Bundle: {AppName}"
  235.     {MACreatorAndBundle} ∂
  236.         {CreatorAndBundleOptions} ∂
  237.         {OtherCreatorAndBundleOptions} ∂
  238.         "{ObjApp}{AppName}"
  239.  
  240. # The MakeSYM stage is commented out because the Macintosh Debugger for PowerPC 2.0
  241. # reads xcoff files directly. If you are using another debugger such as Jasik's,
  242. # just uncomment these lines: 
  243.  
  244. ##    "{ObjApp}{AppName}"                    ƒƒ ∂
  245. ##                                        "{BuildFlags}" ∂
  246. ##                                        {MacAppLib} ∂
  247. ##                                        {NeededSysLibs} ∂
  248. ##                                        {OtherLinkFiles} ∂
  249. ##                                        {OtherLinkFilesPPC} ∂
  250. ##                                        "{XAppName.cp.o}" ∂
  251. ##                                        "{XUAppName.cp.o}" ∂
  252. ##                                        "{XMAppName.cp.o}"
  253. ##        {MAEcho} {EchoOptions} "MakeSYM: {AppName}"
  254. ##        IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  255. ##        MakeSYM ∂
  256. ##            {MakeSymOptions} ∂
  257. ##            {OtherMakeSymOptions} ∂
  258. ##            -i "{MALibraries}" ∂
  259. ##            -i "{SrcApp}" ∂
  260. ##            "{ObjApp}{AppName}.xcoff" 
  261. ##        IF "{XTimes}"
  262. ##            {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  263. ##        END
  264.  
  265. #{AppName} dependencies
  266. "{ObjApp}{AppName}"                    ƒƒ ∂
  267.                                     "{XMakeIt}"
  268.     {MAEcho} {EchoOptions} " ∂"{ObjApp}{AppName}∂"  # <- Execute to run your application"
  269.     IF "{XRunAfterBuild}"
  270.         {MAEcho} {EchoOptions} "Running:       ∂"{ObjApp}{AppName}∂""
  271.         "{ObjApp}{AppName}"
  272.     END
  273.  
  274.  
  275. # Dependencies for the "Magically" named files
  276.  
  277. "{ObjApp}M{AppName}.cp.o"            ƒ ∂
  278.                                     "{XUAppName.h}" ∂
  279.                                     {BuildingBlocksCPlusIntf} ∂
  280.                                     {MacAppCPlusIntf} ∂
  281.                                     {OtherInterfaces}
  282. "{ObjApp}U{AppName}.cp.o"            ƒ ∂
  283.                                     "{XUAppName.h}" ∂
  284.                                     {BuildingBlocksCPlusIntf} ∂
  285.                                     {MacAppCPlusIntf} ∂
  286.                                     {OtherInterfaces}
  287. "{ObjApp}{AppName}.cp.o"            ƒ ∂
  288.                                     {BuildingBlocksCPlusIntf} ∂
  289.                                     {MacAppCPlusIntf} ∂
  290.                                     {OtherInterfaces}
  291.  
  292.  
  293. ###########################################################
  294. # D U M P  F I L E  D E P E N D E N C I E S
  295. ###########################################################
  296. # Load/Dump files must be kept current for C++ too
  297. # !!! but the dump files must be made dependent on a buildflags kept for the dumpfiles folder!!!
  298. {CPlusLoadFiles} {CPlusLoadObj}    ƒ ∂
  299.         {MacAppCPlusIntf}
  300.     {MAEcho} {EchoOptions} "C++ Load/Dump: {MacAppHeaders}"
  301.     IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  302.     IF "`EXISTS {CPlusLoad}`" != ''
  303.         Delete {CPlusLoad}
  304.         END
  305.     {MAPPCC} ∂
  306.         {PPCCOptions} ∂
  307.         {MrCOptions} ∂
  308.         {OtherCPlusOptions} ∂
  309.         -i "{SrcApp}" {MACPlusPaths} -i "{MALibraries}" ∂
  310.         {MacAppHeaders} ∂
  311. # Any other files you want to include in the dump could go here; if you are using CW, stick extra includes in CWMacAppHeaders.h instead
  312.         {LoadFileOutput} ∂
  313.         -dumpc {CPlusLoad} || (Delete {CPlusLoad})
  314.     IF "{XTimes}"
  315.         {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  316.     END
  317.     IF "{MAPPCC}" == "{MAmwCPPC}"
  318.         IF "`EXISTS {CPlusLoad}`" != ''
  319.             Duplicate "{CWExtraFiles}Empty.c.xcoff" {CPlusLoadObj} -y
  320.             SetFile {CPlusLoadObj} -m .
  321.         END
  322.     END
  323.  
  324.  
  325. ###########################################################
  326. # T O O L   D E P E N D E N C I E S
  327. ###########################################################
  328. "{ObjApp}{ToolName}"                ƒƒ ∂
  329.                                             "{BuildFlags}" ∂
  330.                                             {CPlusLoad} ∂
  331. ####                                            {MacAppLib} ∂
  332.                                             {NeededSysLibs} ∂
  333.                                             {OtherLinkFiles} ∂
  334.                                             {OtherLinkFilesPPC} ∂
  335.                                             "{XAppName.cp.o}" ∂
  336.                                             "{XUAppName.cp.o}" ∂
  337.                                             "{XMAppName.cp.o}"
  338.     IF "{All_Cpp_Files}" != ""
  339.         if {XUseRAMDisk} && !{XRAMDiskLoad}
  340.             {MAEcho} {EchoOptions} "Loading:       {XRAMDiskName}"
  341.             duplicate -y {CPlusLoad} {CPlusLoadCopy}
  342.             set XRAMDiskLoad 1
  343.         end
  344. ###        {MAEcho} {EchoOptions} "Compiling tool source files (C++):"
  345.         {MAEcho} {EchoOptions} "Compiling:    {All_Cpp_Names}"
  346.         IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  347.         {MAPPCC} ∂
  348.             {PPCCOptions} ∂
  349.             {MrCOptions} ∂
  350.             {OtherCPlusOptions} ∂
  351.             {CPlusLoadOptions} ∂
  352.             -i "{SrcApp}" {MACPlusPaths} ∂
  353.             {All_Cpp_Files} ∂
  354.             -o {targDir}
  355.         set All_Cpp_Files ""
  356.         set All_Cpp_Names ""
  357.         IF "{XTimes}"
  358.             {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  359.         END
  360.     END
  361.  
  362. "{ObjApp}{ToolName}"                ƒƒ ∂
  363.                                             "{BuildFlags}" ∂
  364.                                             {CPlusLoad} ∂
  365. ####                                            {MacAppLib} ∂
  366.                                             {NeededSysLibs} ∂
  367.                                             {OtherLinkFiles} ∂
  368.                                             {OtherLinkFilesPPC} ∂
  369.                                             "{XAppName.cp.o}" ∂
  370.                                             "{XUAppName.cp.o}" ∂
  371.                                             "{XMAppName.cp.o}"
  372.     IF "{All_C_Files}" != ""
  373.         if {XUseRAMDisk} && !{XRAMDiskLoad} && ({MAPPCC} == MWCPPC)
  374.             {MAEcho} {EchoOptions} "Loading:       {XRAMDiskName}"
  375.             CopyIfNotEqual {CPlusLoadFiles} {CPlusLoadCopy}
  376.             set XRAMDiskLoad 1
  377.         end
  378. ###        {MAEcho} {EchoOptions} "Compiling tool source files (C):"
  379.         {MAEcho} {EchoOptions} "Compiling:    {All_C_Names}"
  380.         IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  381.         {MAPPCC} ∂
  382.             {PPCCOptions} ∂
  383.             {MrCOptions} ∂
  384.             {OtherCOptions} ∂
  385.             {CLoadOptions} ∂
  386.             -i "{SrcApp}" {MACPlusPaths} ∂
  387.             {All_C_Files} ∂
  388.             -o {targDir}
  389.         set All_C_Files ""
  390.         set All_C_Names ""
  391.         IF "{XTimes}"
  392.             {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  393.         END
  394.     END
  395.  
  396. "{ObjApp}{ToolName}"                ƒƒ ∂
  397.                                             "{BuildFlags}" ∂
  398.                                             {CPlusLoad} ∂
  399. ####                                            {MacAppLib} ∂
  400.                                             {NeededSysLibs} ∂
  401.                                             {OtherLinkFiles} ∂
  402.                                             {OtherLinkFilesPPC} ∂
  403.                                             "{XAppName.cp.o}" ∂
  404.                                             "{XUAppName.cp.o}" ∂
  405.                                             "{XMAppName.cp.o}"
  406.     {MAEcho} {EchoOptions} "Linking:       {ToolName}"
  407.     IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  408.     Evaluate v = 0x01104003 # 1.1a3
  409.     {MAPPCLink} ∂
  410.         {PPCLinkOptions} ∂
  411.         {OtherLinkOptions} ∂
  412.         {OtherLinkFiles} ∂
  413.         {OtherLinkFilesPPC} ∂
  414.         {CPlusLoadObj} ∂
  415. ####        {MacAppLib} ∂
  416.         "{XAppName.cp.o}" ∂
  417.         "{XUAppName.cp.o}" ∂
  418.         "{XMAppName.cp.o}" ∂
  419.         {NeededSysLibs} ∂
  420.         -librename "StdCLib.xcoff=StdCLib#{v}" ∂
  421.         -librename InterfaceLib.xcoff=InterfaceLib ∂
  422.         -librename MathLib.xcoff=MathLib ∂
  423.         {CFMLibMapping} ∂
  424.         -o "{ObjApp}{ToolName}" ∂
  425.         -t MPST -c 'MPS ' ∂
  426.         ||  (∂
  427.         IF "`EXISTS "{ObjApp}{ToolName}.cp.o"`" != ''; ∂
  428.             SetFile -m . "{ObjApp}{ToolName}.cp.o"; ∂
  429.             end; ∂
  430.          Exit 99)
  431.     Unset v
  432.     IF "{XTimes}"
  433.         {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  434.     END
  435.  
  436. #ToolName dependencies
  437.  
  438. "{ObjApp}{ToolName}"                ƒƒ ∂
  439.                                     "{SrcApp}{ToolName}.r" ∂
  440.                                     "{Merge68K}" ∂
  441.                                     {OtherViewTypesSrc}
  442.     {MAEcho} {EchoOptions} "Rezzing:       {ToolName}"
  443.     IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  444.     IF {OtherViewTypesSrc} != ""
  445.         SET XOtherViewTypesSrc {OtherViewTypesSrc}
  446.         SET XIncludeOtherViewTypes 1
  447.         EXPORT XOtherViewTypesSrc
  448.     ELSE
  449.         SET XIncludeOtherViewTypes 0
  450.     END
  451.     SET ObjApp "{ObjApp}"
  452.     EXPORT ObjApp
  453.     SET XAppName "{XAppName}"
  454.     EXPORT XAppName
  455.     {MARez} ∂
  456.         -d XIncludeOtherViewTypes={XIncludeOtherViewTypes} ∂
  457.         -i "{SrcApp}" -s "{SrcApp}" {MARezPaths} ∂
  458.         -a -o "{ObjApp}{ToolName}" ∂
  459.         -t 'MPST' -c 'MPS ' ∂
  460.         {RezOptions} ∂
  461.         {OtherRezOptions} ∂
  462.         "{SrcApp}{ToolName}.r" ∂
  463.         {OtherRezFiles}
  464.     IF "{Merge68K}" != ""
  465.         {MAEcho} {EchoOptions} "Merging:       {Merge68K}"
  466.         Echo "include ∂"{Merge68K}∂" not 'vers';" ∂
  467.             | {MARez} -a -o "{ObjApp}{ToolName}"
  468.     END
  469.     IF "{XTimes}"
  470.         {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  471.     END
  472.  
  473. #{ToolName} dependencies
  474. "{ObjApp}{ToolName}"                    ƒƒ ∂
  475.                                     "{XMakeIt}"
  476.     {MAEcho} {EchoOptions} " ∂"{ObjApp}{ToolName}∂"  # <- Execute to run your tool"
  477.     IF "{XRunAfterBuild}"
  478.         {MAEcho} {EchoOptions} "Running:       ∂"{ObjApp}{ToolName}∂""
  479.         "{ObjApp}{ToolName}"
  480.     END
  481.  
  482.  
  483.  
  484. ###########################################################
  485. # L I B R A R Y   D E P E N D E N C I E S
  486. ###########################################################
  487. "{ObjApp}{LibName}"                ƒƒ ∂
  488.                                     {LibObjs}
  489.     IF "{All_Cpp_Files}" != ""
  490.         if {XUseRAMDisk} && !{XRAMDiskLoad}
  491.             {MAEcho} {EchoOptions} "Loading:       {XRAMDiskName}"
  492.             duplicate -y {CPlusLoad} {CPlusLoadCopy}
  493.             set XRAMDiskLoad 1
  494.         end
  495. ###        {MAEcho} {EchoOptions} "Compiling library source files (C++):"
  496.         {MAEcho} {EchoOptions} "Compiling:    {All_Cpp_Names}"
  497.         IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  498.         {MAPPCC} ∂
  499.             {PPCCOptions} ∂
  500.             {MrCOptions} ∂
  501.             {OtherCPlusOptions} ∂
  502.             {CPlusLoadOptions} ∂
  503.             -i "{SrcApp}" {MACPlusPaths} ∂
  504.             {All_Cpp_Files} ∂
  505.             -o {targDir}
  506.         set All_Cpp_Files ""
  507.         set All_Cpp_Names ""
  508.         IF "{XTimes}"
  509.             {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  510.         END
  511.     END
  512.  
  513. "{ObjApp}{LibName}"                ƒƒ ∂
  514.                                     {LibObjs}
  515.     IF "{All_C_Files}" != ""
  516.         if {XUseRAMDisk} && !{XRAMDiskLoad} && ({MAPPCC} == MWCPPC)
  517.             {MAEcho} {EchoOptions} "Loading:       {XRAMDiskName}"
  518.             CopyIfNotEqual {CPlusLoadFiles} {CPlusLoadCopy}
  519.             set XRAMDiskLoad 1
  520.         end
  521. ###        {MAEcho} {EchoOptions} "Compiling library source files (C):"
  522.         {MAEcho} {EchoOptions} "Compiling:    {All_C_Names}"
  523.         IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  524.         {MAPPCC} ∂
  525.             {PPCCOptions} ∂
  526.             {MrCOptions} ∂
  527.             {OtherCOptions} ∂
  528.             {CLoadOptions} ∂
  529.             -i "{SrcApp}" {MACPlusPaths} ∂
  530.             {All_C_Files} ∂
  531.             -o {targDir}
  532.         set All_C_Files ""
  533.         set All_C_Names ""
  534.         IF "{XTimes}"
  535.             {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  536.         END
  537.     END
  538.  
  539. "{ObjApp}{LibName}"                ƒƒ ∂
  540.                                     {LibObjs}
  541.     IF {MacAppLibrary} || {LibName} !~ /MacApp.lib.xcoff/ # Special trick to keep MacApp libraries from building
  542.         {MAEcho} {EchoOptions} "Libbing:       {LibName}"
  543.         IF "{XTimes}"; SET XToolStartTime `DATE -n`; END
  544.         {MAPPCLink} ∂
  545.             {PPCLibOptions} ∂
  546.             {OtherLibOptions} ∂
  547.             {LibObjs} ∂
  548.             -o "{ObjApp}{LibName}"
  549.         IF "{XTimes}"
  550.             {MAEcho} {EchoOptions} Elapsed time: `evaluate ∂`DATE -n ∂` - {XToolStartTime}` seconds
  551.         END
  552.     END
  553.  
  554.